package org.kyw.org.mapper;

import org.kyw.basic.mapper.BaseMapper;
import org.kyw.org.domain.Employee;

/**
 * 定义员工 数据库操作接口
 */
public interface EmployeeMapper extends BaseMapper<Employee> {

    /**
     * 通过登录名，匹配username phone email，匹配员工
     * @param username
     * @return
     */
    Employee loadByUser(String username);

    /**
     * 根据LogininfoId查询员工
     * @param id
     * @return
     */
    Employee loadByLogininfoId(Long id);
}
